{extend name='table'}

{block name="content"}
<div class="layui-tab layui-tab-card">
    <div class="layui-tab-content">
        {include file='accesscount/index_search'}
        <table id="DataAddTable" data-url="{:sysuri('index')}" data-target-search="form.form-search"></table>
    </div>
</div>

<script>
    $(function () {
        $('#DataAddTable').layTable({
            even: true, height: 'full',
            sort: {field: 'countdate desc', type: 'desc'},
            where: {type: '{$type|default="index"}'},
            cols: [[
                {field: 'countdate', title: '{:lang("日期")}', minWidth: 100, align: 'center', templet: '<div>{{d.countdate||"-"}}</div>'},
                {field: 'pv', title: '{:lang("PV (网站请求次数)")}', minWidth: 100, align: 'center', templet: '<div>{{d.pv||"0"}}</div>'},
                {field: 'uv', title: '{:lang("UV（网站请求IP数）")}', minWidth: 100, align: 'center', templet: '<div>{{d.uv||"0"}}</div>'},
            ]]
        });
    });
</script>
{/block}